package com.humbleyuan.blogfront;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @Author HumbleYuan
 * @Date 2019/11/14 17:15
 * @Des 配置于容器中的启动类
 */
public class BlogFrontStartApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {

        // 这里指向原先用main方法执行的Application启动类
        return builder.sources(BlogFrontApplication.class);
    }
}
